package net.flyinggroup.mapstruct.multiple;

import net.flyinggroup.mapstruct.multiple.Customer;
import net.flyinggroup.mapstruct.multiple.CustomerDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper
public interface CustomerMapper {

    @Mapping(source = "firstName", target = "foreName")
    @Mapping(source = "lastName", target = "surName")
    CustomerDto toCustomerDto(Customer customer);
}
